Ython the difference between single quotes, double quotes, and three double quotesPython strings usually have single quotes (' ... '), double quotation marks ("..."), three quotation marks ("" "..." "") or ("..."), or ("."), surrounded by a string
1. Define String
In PHP, a string can be defined using single quotes or double quotes. However, you must use the same single or double quotes to define the string, such as: ' Hello ' and ' hello ' are illegal string definitions.
When you define
Http://blog.sina.com.cn/s/blog_6be8928401017lwy.htmlFirst, the difference between 1 double quotation marks and 3 double quotes, the words represented by double quotation marksStrings are usually written in a lineSuch as:S1 = "Hello,world"If you want
Basic Usage
In conclusion:
Single quotes in any case represent only the characters within the quotation marks. In other words, the contents of single quotes do not make the substitution of variables and the escape of characters. In double quotes,
The difference between single quotes and double quotes in PHP is described in detail. The article details the differences between single quotes and double quotes in PHP. For more information, see. 1. define a string in PHP. The definition of a
First, the difference between 1 double quotes and 3 double quotes, the string represented by double quotation marks is usually written as a line
Such as:
S1 = "Hello,world"
If you want to write multiple lines, then use \ ("line break"), such as
S2 =
Let's talk about the difference between single and double quotation marks in PHP and the difference between php double quotation marks. Let's talk about the difference between single and double quotation marks in PHP. in php, you can use single
A simple summary of the difference between single and double quotes in PHP strings, PHP string
Today, a friend asked, said the difference, by the way review.
Single and double quotation marks are different:
The fields inside the double
The article introduces in detail about the differences between single and double quotes in PHP, and the students who need to know can refer to them.
1. Defining stringsIn PHP, the definition of a string can use either single quotation marks or
The article details the differences between single quotes and double quotes in PHP. For more information, see.
1. Define a stringIn PHP, you can use single quotes or double quotes to define strings. However, the same single or double quotation marks
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.